-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
orderwatch: Update lastUpdated and fillableTakerAssetAmount for order in DB #386
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fabioberger
force-pushed
the
fix/missingLastUpdatedUpdates
branch
from
September 3, 2019 19:12
0166385
to
ab68140
Compare
albrow
suggested changes
Sep 3, 2019
fabioberger
force-pushed
the
fix/missingLastUpdatedUpdates
branch
from
September 4, 2019 12:54
ab68140
to
75268a9
Compare
…idate it, not only if it's added/removed from the OrderWatcher
fabioberger
force-pushed
the
fix/missingLastUpdatedUpdates
branch
from
September 5, 2019 08:01
75268a9
to
4c04415
Compare
…that no one else can modify the orders while the orders are being read and modified by this method
albrow
suggested changes
Sep 5, 2019
@fabioberger I think you meant to pass the transaction through to |
…lso encompasses the order reads, not just the writes
fabioberger
force-pushed
the
fix/missingLastUpdatedUpdates
branch
from
September 5, 2019 20:12
03d8783
to
15b83b8
Compare
albrow
approved these changes
Sep 5, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #190
Currently, we aren't updating an orders
fillableTakerAssetAmount
nor it'slastUpdated
timestamp in the DB when processing a contract event impacting it unless it is being unwatched or re-watched. This PR makes it such that we always update an order's DB entry, no matter what the event so that thelastUpdated
andfillableTakerAssetAmount
in the DB is always accurate.